<?php
/**
 * Created by PhpStorm.
 * User: dungnt13
 * Date: 12/10/14
 * Time: 9:14 AM
 */

namespace App\Services;

use User,
    Video,
    Lesson,
    Lyric,
    Str,
    DB,
    Cache,
    Comment,
    Paginator,
    Redis,
    Exception;

class AccountServices extends BaseService
{
    public function statisticUser($id)
    {
        $data['videos'] = User::find($id)->videos()->count();
        $data['lessons'] = User::find($id)->lessons()->count();
        $data['lyrics'] = User::find($id)->lyrics()->count();
        return $data;
    }
} 